#ifndef SKYBOX_H
#define SKYBOX_H

namespace PM3D
{
    class CameraManHuman;
    class Dispositif;

    class Skyboxx
    {
    public:
        Skyboxx(Dispositif* DXDevice, 
            const std::wstring& envmapFilename, float skyRadius);
        ~Skyboxx();

        void draw(const CameraManHuman* camera);

    private:
        ID3DXMesh* sphere_;
        IDirect3DCubeTexture9* envMap_;
        ID3DXEffect* FX_;
        D3DXHANDLE hTech_;
        D3DXHANDLE hEnvMap_;
        D3DXHANDLE hWVP_;

        IDirect3DDevice9* d3dDevice_;
    };

}   //namespace PM3D

#endif  // SKYBOX_H
